package com.yuanfeng.base.controller;


import com.yuanfeng.base.dto.HoneycombArticleQueryDTO;
import com.yuanfeng.commoms.util.ResponseResult;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @ClassName BaseHoneycombArticleController
 * @Description  图文发现表
 * @Author ty
 * @Date 2023-07-04 16:27:37
 * @Version 1.0
 **/
@RestController
@RequestMapping("baseHoneyComb")
public class BaseHoneycombArticleController extends BaseController{

    /**
     * 装修 查看文章列表
     *
     * @param param
     * @return
     */
    @PostMapping(value = "/article/list")
    public ResponseResult queryFinishArticleList(@RequestBody HoneycombArticleQueryDTO param) {
        return baseHoneycombArticleService.queryFinishArticleList(param);
    }


    /**
     * 文章详情
     *
     * @param param
     * @return
     */
    @PostMapping("/article/detail/query")
    public ResponseResult queryArticleDetail(@RequestBody HoneycombArticleQueryDTO param) {
        return baseHoneycombArticleService.queryArticleDetail(param);
    }
}
